//
//  TXToastCenter.h
//  TXKit
//
//  Created by YM on 15/11/24.
//  Copyright © 2015年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@class TXToastView;

@interface TXToastCenter : NSObject
{
    NSMutableArray *_alerts;
//    BOOL _active;
    TXToastView *_alertView;
    CGRect _alertFrame;
}

@property (nonatomic, assign)BOOL active;

/**
 *  Returns the process’s default notification center
 *
 *  @return The current process’s default notification center, which is used for alert notifications.
 */
+ (TXToastCenter*) defaultCenter;


/**
 *  Posts a given alert message to the user
 *
 *  @param message The message shown under an image.
 *  @param image The image displayed to the user. If image is nil, the message will only be shown.
 */
- (void) postAlertWithMessage:(NSString*)message image:(UIImage*)image;

/**
 *  Posts a given alert message to the user
 *
 *  @param message The message shown under an image.
 */
- (void) postAlertWithMessage:(NSString *)message;

@end
